package com.hnust.service.impl;

import com.hnust.api.ClassApi;
import com.hnust.domain.Result;
import com.hnust.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    ClassApi classApi;
    @Override
    public Result<List<String>> getClasses(String tea_id, String testid){
        return classApi.getClassInfo(tea_id,testid);
    }
    @Override
    public String getClassId(String cla_name){
        return classApi.getClassId(cla_name);
    }
    @Override
    public Boolean getClassMsgByMajor_Grade(String grade,String major){
        return classApi.getClassMsgByMajor_Grade(grade, major);
    }
}
